package xyz.hubery.mappers;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import xyz.hubery.domain.Market;
import xyz.hubery.dto.MarketDto;

import java.util.List;

@Mapper(componentModel = "spring")
public interface MarketMappers {
    MarketMappers INSTANCE = Mappers.getMapper(MarketMappers.class);

    MarketDto toDto(Market market);

    List<MarketDto> toDto(List<Market> markets);

}
